public class MainClass {
    public static void main(String[] args) {
        String str = "abcabcbb";
        Solution s = new Solution();
        System.out.print(s.lengthOfLongestSubstring(str));
    }
}
